package com.doublechaintech.retailscm.employeecompanytraining;

import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Stream;
import java.util.Map;
import com.terapico.caf.baseelement.CandidateQuery;
import com.doublechaintech.retailscm.BaseDAO;
import com.doublechaintech.retailscm.BaseEntity;
import com.doublechaintech.retailscm.SmartList;
import com.doublechaintech.retailscm.MultipleAccessKey;
import com.doublechaintech.retailscm.RetailscmUserContext;

import com.doublechaintech.retailscm.scoring.Scoring;
import com.doublechaintech.retailscm.employee.Employee;
import com.doublechaintech.retailscm.companytraining.CompanyTraining;

import com.doublechaintech.retailscm.companytraining.CompanyTrainingDAO;
import com.doublechaintech.retailscm.scoring.ScoringDAO;
import com.doublechaintech.retailscm.employee.EmployeeDAO;

public interface EmployeeCompanyTrainingDAO extends BaseDAO {

  public SmartList<EmployeeCompanyTraining> loadAll();

  public Stream<EmployeeCompanyTraining> loadAllAsStream();

  public EmployeeCompanyTraining load(String id, Map<String, Object> options) throws Exception;

  public void enhanceList(List<EmployeeCompanyTraining> employeeCompanyTrainingList);

  public void collectAndEnhance(BaseEntity ownerEntity);

  public void alias(List<BaseEntity> entityList);

  public EmployeeCompanyTraining present(
      EmployeeCompanyTraining employeeCompanyTraining, Map<String, Object> options)
      throws Exception;

  public EmployeeCompanyTraining clone(String id, Map<String, Object> options) throws Exception;

  public EmployeeCompanyTraining save(
      EmployeeCompanyTraining employeeCompanyTraining, Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> saveEmployeeCompanyTrainingList(
      SmartList<EmployeeCompanyTraining> employeeCompanyTrainingList, Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> removeEmployeeCompanyTrainingList(
      SmartList<EmployeeCompanyTraining> employeeCompanyTrainingList, Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingWithKey(
      MultipleAccessKey key, Map<String, Object> options);

  public int countEmployeeCompanyTrainingWithKey(
      MultipleAccessKey key, Map<String, Object> options);

  public Map<String, Integer> countEmployeeCompanyTrainingWithGroupKey(
      String groupKey, MultipleAccessKey filterKey, Map<String, Object> options);

  public EmployeeCompanyTraining disconnectFromAll(String employeeCompanyTrainingId, int version)
      throws Exception;

  public void resetNextId();

  public SmartList<EmployeeCompanyTraining> queryList(String sql, Object... parameters);

  public List<String> queryIdList(String sql, Object... parameters);

  public Stream<EmployeeCompanyTraining> queryStream(String sql, Object... parameters);

  public int count(String sql, Object... parameters);

  public CandidateEmployeeCompanyTraining executeCandidatesQuery(
      CandidateQuery query, String sql, Object... parmeters) throws Exception;

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingByEmployee(
      String employeeId, Map<String, Object> options);

  public int countEmployeeCompanyTrainingByEmployee(String employeeId, Map<String, Object> options);

  public Map<String, Integer> countEmployeeCompanyTrainingByEmployeeIds(
      String[] ids, Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingByEmployee(
      String employeeId, int start, int count, Map<String, Object> options);

  public void analyzeEmployeeCompanyTrainingByEmployee(
      SmartList<EmployeeCompanyTraining> resultList,
      String employeeId,
      Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingByTraining(
      String companyTrainingId, Map<String, Object> options);

  public int countEmployeeCompanyTrainingByTraining(
      String companyTrainingId, Map<String, Object> options);

  public Map<String, Integer> countEmployeeCompanyTrainingByTrainingIds(
      String[] ids, Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingByTraining(
      String companyTrainingId, int start, int count, Map<String, Object> options);

  public void analyzeEmployeeCompanyTrainingByTraining(
      SmartList<EmployeeCompanyTraining> resultList,
      String companyTrainingId,
      Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingByScoring(
      String scoringId, Map<String, Object> options);

  public int countEmployeeCompanyTrainingByScoring(String scoringId, Map<String, Object> options);

  public Map<String, Integer> countEmployeeCompanyTrainingByScoringIds(
      String[] ids, Map<String, Object> options);

  public SmartList<EmployeeCompanyTraining> findEmployeeCompanyTrainingByScoring(
      String scoringId, int start, int count, Map<String, Object> options);

  public void analyzeEmployeeCompanyTrainingByScoring(
      SmartList<EmployeeCompanyTraining> resultList, String scoringId, Map<String, Object> options);

  List<EmployeeCompanyTraining> search(EmployeeCompanyTrainingRequest pRequest);
}
